#pragma once
#include "user.hpp"

/////////////////////////////////////////////////////////////////////////////////////////////
/*

    UserModel是一个user表的数据操作类
    
*/
class UserModel
{
public:
    /*············································

                    User表的插入
    
    ············································*/
    bool Insert(User& user);
    /*············································

                根据user_id查询user信息
    
    ············································*/
    User Query(const int id);
    /*············································

                  更新user的状态信息
    
    ············································*/
    bool UpdateState(const User& user);
    /*············································

                  重置user的状态信息
    
    ············································*/
    void ResetState();
};